//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "fn_ehKilled.sqf"
#include <btc_macros.h>
TRACE_1("Start",_this);


	_body = _this select 0;
	_body spawn
	{
		closeDialog 0;
		waitUntil {Alive player};
		deleteVehicle _this;
		player setcaptive false;
		player setVariable ["BTC_r_status",[0,0,0,0,0],true];
		player setVariable ["BTC_r_legs",0,false];
		player setVariable ["BTC_r_hands",0,false];
		closeDialog 0;
		BTC_r_bleeding_loop = false;
		BTC_r_med_effect = false;
		BTC_r_unc = false;
		BTC_r_damage = 0;
		BTC_r_head = 0;
		BTC_r_damage_legs = 0;
		BTC_r_damage_hands = 0;
		player setHit ["hands", 0];
		player setHit ["legs", 0];
		player setfatigue 0;
		player forceWalk false;
		_actions = [] spawn BTCR_fnc_assignActions;
		_respawn = [] spawn BTCR_fnc_playerRespawn;
		if (BTC_respawn_gear == 1) then 
		{
			_gear = [player,BTC_gear] spawn BTCR_fnc_setGear;
		};
	};
